<script language=javascript>
function new_cat()
{
	if (document.getElementById('new').selected == true)
		document.getElementById('i_new').style.display = "block";
	else
		document.getElementById('i_new').style.display = "none";
	//	if (document.getlementbyid('new').style.display == none)
	//	document.getelementbyid('new').style.display == block;
}

</script>

<?php
	if (isset($_GET['action']) && $_GET['action'] == "add")
		include('pages/add_product.php');
	elseif (isset($_GET['action']) && $_GET['action'] == "edit")
		include('pages/edit_prod.php');
	else
	{
?>
<div id="ventes">
	<h1><center><a href="index.php?page=produits&action=add"> <img src="img/list-add.png"  width="20px" height="20px"/> Ajouter un produit </a></center></h1> <br /> <br />
</div>
<?php
	}
	?>

